package test;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@SpringBootApplication
@RestController
public class SpringBootDockerApplication {

    public static void main(String[] args) {
        System.setProperty("log4j.skipJansi", "false");
        SpringApplication.run(SpringBootDockerApplication.class, args);
        LoggerUtil.info(LOGGER, "SpringBootDockerApplication 启动成功 ...");
    }

    @PostMapping("/docker")
    public Object copy() {
        LoggerUtil.info(LOGGER, "copy invoked ... ");
        return "this is spring boot docker";
    }

}